package streaming

import com.alibaba.fastjson.JSON

object JsonTest {
  def main(args: Array[String]): Unit = {
    val s=
      """
        |{"user_id": 1, "hour": 7, "order_id": 2398795, "eval_set": "prior", "order_dow": 3, "order_number": 2, "day": 15.0}
        |""".stripMargin
    val msg=JSON.parseObject(s,classOf[Orders])
    println(msg.getOrder_id,msg.getOrder_dow)

  }
}
